home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / ATL_Samples / polycntr / polyctl.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.3 KB  |  50 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "polyctl.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPolyCtl
  12.  
  13. IMPLEMENT_DYNCREATE(CPolyCtl, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CPolyCtl properties
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPolyCtl operations
  20.  
  21. void CPolyCtl::SetFillColor(unsigned long newValue)
  22. {
  23.     static BYTE parms[] =
  24.         VTS_I4;
  25.     InvokeHelper(0xfffffe02, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  26.          newValue);
  27. }
  28.  
  29. unsigned long CPolyCtl::GetFillColor()
  30. {
  31.     unsigned long result;
  32.     InvokeHelper(0xfffffe02, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  33.     return result;
  34. }
  35.  
  36. short CPolyCtl::GetSides()
  37. {
  38.     short result;
  39.     InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  40.     return result;
  41. }
  42.  
  43. void CPolyCtl::SetSides(short nNewValue)
  44. {
  45.     static BYTE parms[] =
  46.         VTS_I2;
  47.     InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  48.          nNewValue);
  49. }
  50.